﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace FixEngine.Configuration
{
    public class FixLibraryCollection:ConfigurationElementCollection
    {
        public override ConfigurationElementCollectionType CollectionType
        {
            get
            {
                return ConfigurationElementCollectionType.AddRemoveClearMap;
            }
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new FixLibrary();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((FixLibrary)element).Key;
        }
        public FixLibrary this[string key]
        {
            get { return (FixLibrary)base[key]; }
        }
    }
}
